home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Car / Controller.h < prev    next >
Encoding:
Text File  |  1992-06-16  |  541 b   |  38 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <objc/Object.h>
  5.  
  6. #define MOTOR 0
  7. #define ENGINE 1
  8. #define BOTH 2
  9.  
  10. @interface Controller:Object
  11. {
  12.     float mass;
  13.     float shiftCeiling;
  14.     float shiftFloor;
  15.     int runningMode;
  16. }
  17.  
  18. // Override methods. 
  19.  
  20. - init;
  21. - read:(NXTypedStream *)stream;
  22. - write:(NXTypedStream *)stream;
  23.  
  24. // This Class' methods
  25.  
  26. - (float)mass;
  27. - setMass:(float)aNumber;
  28.  
  29. - (float)shiftCeiling;
  30. - setShiftCeiling:(float)aNumber;
  31.  
  32. - (float)shiftFloor;
  33. - setShiftFloor:(float)aNumber;
  34.  
  35. - powerRequired:(float)power;
  36.  
  37. @end
  38.